package com.duobao.gongneng;

import java.lang.reflect.Constructor;

import javax.swing.JPanel;

import com.duobao.game.DuobaoSwingLaunch;


public class GongnengManager {
    public static String getFuncName(int funcId) {
        String str="";
        switch(funcId)
        {
            case 1:str="起名字";break;
            case 2:str="休息";break;
            case 3:str="冥思";break;
            case 4:str="买东西";break;
            case 5:str="卖东西";break;
            case 6:str="当东西";break;
            case 7:str="赎东西";break;
            case 8:str="存取";break;
            case 9:str="取钱";break;
            case 10:str="钓鱼";break;
            case 11:str="捡钱";break;
            case 12:str="学艺";break;
            case 13:str="搜索";break;
        }
        return str;
    }
    public static Constructor<JPanel> getPabel(int id)
    {
        Constructor con=null;
        try {
            switch(id)
            {
                case 1:con=Qumingzi.class.getDeclaredConstructor(DuobaoSwingLaunch.class);
                    break;
                case 2:con=Shuijiao.class.getDeclaredConstructor(DuobaoSwingLaunch.class);
                    break;
                case 3:;
                    break;
                case 4:;
                    break;
                case 5:;
                    break;
                case 6:;
                    break;
                case 7:;
                    break;
                case 8:;
                    break;
                case 9:;
                    break;
                case 10:;
                    break;
                case 11:;
                    break;
                case 12:;
                    break;
                case 13:;
                    break;
            }

        } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return con;
    }
}
